package org.example.gift.enums;

public enum SystemErrorCode {
    RESPONSE_CODE_200(200,"操作成功!"),
    RESPONSE_CODE_400(400,"参数错误!"),
    RESPONSE_CODE_400001(400001,"两次密码不一致,请检查后重新提交!"),
    RESPONSE_CODE_400002(400002,"店铺已存在,请检查后重新提交!"),
    RESPONSE_CODE_400003(400003,"用户名重复!"),
    RESPONSE_CODE_500(500,"网络异常!请稍后重试!"),
    RESPONSE_CODE_500001(500001,"您评论审核不通过,请规范评论言论!"),
    RESPONSE_CODE_500002(500002,"图形验证码不正确,请核对"),
    RESPONSE_CODE_500003(500003,"发送过于频繁，请稍后再试"),
    RESPONSE_CODE_500004(500004,"手机验证码不正确,请核对"),
    RESPONSE_CODE_500005(500005,"手机号已经注册过,请直接登录"),
    RESPONSE_CODE_500006(500006,"用户名或密码错误"),
    RESPONSE_CODE_500007(500007,"链接超时"),
    RESPONSE_CODE_400500(400500,"认证中心暂时不可用,攻城狮正在努力抢救");
    private String msg;
    private Integer code;

    SystemErrorCode() {
    }

    SystemErrorCode(Integer code, String msg) {
        this.msg = msg;
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public SystemErrorCode setMsg(String msg) {
        this.msg = msg;
        return this;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}